package com.hut.oa.service;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;

import javax.transaction.Transactional;

import org.apache.commons.io.FilenameUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import com.hut.oa.model.bean.Directory;
import com.hut.oa.model.bean.FileManage;
import com.hut.oa.model.bean.User;
import com.hut.oa.model.dao.address.AddressDirDao;
import com.hut.oa.model.dao.file.DirectoryDao;
import com.hut.oa.model.dao.file.FileManageDao;


@Service
@Transactional
public class AddressService {
	
	@Autowired
	AddressDirDao dirdao;
	
	public int update(String value,Long id,User u){
		return dirdao.updatebyid(value, id, u);
	}
}
